package cn.mln521.activemq.activemqdemo.jms;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * p2p消息消费者
 */
@Component
public class OrderConsumer {

	@JmsListener(destination="order.queue")	//时时监听消息队列
	public void receiveQueue(String text){
		System.out.println("OrderConsumer收到的报文为:"+text);
	}
}
